import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
/*门店列表*/
export const queryStoreList = (params?) => {
  return http.request("get", baseUrlApi("store/storeList"), { params });
};
/*门店管理-添加*/
export const addStore = async (data?: object) => {
  return http.request("post", baseUrlApi("store/add"), { data });
};
/*门店管理- 编辑*/
export const editStore = async (data?: object) => {
  return http.request("post", baseUrlApi("store/edit"), { data });
};
/*用户列表*/
export const queryRoleList = (params?) => {
  return http.request("get", baseUrlApi("sysUser/sysUserList"), { params });
};
/*门店管理-删除*/
export const deleteStore = (params?) => {
  return http.request("get", baseUrlApi("store/delete"), { params });
};
/*门店详情*/
export const getStoreDetail = (params?) => {
  return http.request("get", baseUrlApi("store/storeDetail"), { params });
};
/*枚举*/
export const enums = (params?) => {
  return http.request("get", baseUrlApi("base/enums"), {
    params
  });
};


/*技能列表*/
export const getSkillList = (params?) => {
  return http.request("get", baseUrlApi("skill/skillList"), { params });
};